<template>
  <div id="pdf">
    <div id="demo"></div>
  </div>
</template>
<!--参考案例-->
<!--pdfh5移动端文件预览https://blog.csdn.net/Dandrose/article/details/116452906-->
<script>
import Pdfh5 from 'pdfh5'
import 'pdfh5/css/pdfh5.css'
export default {
  name: "PDFH5",
  data(){
    return {
      pdfh5: null,
      newPdfUrl: '/vuetest.pdf',
    }
  },
  mounted(){
    this.pdfh5=new Pdfh5('#demo',{
      pdfurl:this.newPdfUrl,
      goto: 1,
      logo: {x: 420, y:700, width: 120, height: 120},
    })

  },
}
</script>

<style scoped>

</style>
